var debug = process.env.NODE_ENV !== "producetion";
module.exports = {
    devtool:debug ? "sourcemap" : null,
    entry: ["./entry.js"],
    output: {
        filename: "bundle.js"
    },
    module: {
        loaders: [
            {
                test: /\.css$/,
                loader:'style-loader!css-loader'
            },
            {
                test:/\.js?$/,
                exclude:/node_modules/,
                loader:'babel-loader',
                query:{
                    presets:['es2015']
                }
            },
            {
                test:/\.vue$/,
                loader:'vue-loader'
            },
        ]
    },


    resolve: {
        alias: {
            'vue$': 'vue/dist/vue.js'
        }
    }

}
